home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Bitmap / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.2 KB  |  91 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef PART_H
  13. #define PART_H
  14.  
  15. // ----- Part Layer -----
  16.  
  17. #ifndef FWPART_H
  18. #include "FWPart.h"
  19. #endif
  20.  
  21. // ----- OS Layer -----
  22.  
  23. #ifndef FWBITMAP_H
  24. #include "FWBitmap.h"
  25. #endif
  26.  
  27. #ifndef FWMENU_H
  28. #include "FWMenu.h"
  29. #endif
  30.  
  31. // ----- Foundation Layer -----
  32.  
  33. #ifndef FWBNDSTR_H
  34. #include "FWBndStr.h"
  35. #endif
  36.  
  37. //========================================================================================
  38. //    Forward Declarations
  39. //========================================================================================
  40.  
  41. class CBitmapContent;
  42.  
  43. //========================================================================================
  44. //    class CBitmapPart
  45. //========================================================================================
  46.  
  47. class CBitmapPart : public FW_CPart
  48. {
  49. //----------------------------------------------------------------------------------------
  50. //    Initialization/Destruction
  51. //
  52. public:
  53.  
  54.     FW_DECLARE_AUTO(CBitmapPart)
  55.     
  56.     CBitmapPart(ODPart* odPart);
  57.     virtual ~ CBitmapPart();
  58.     
  59.     virtual void Initialize(Environment* ev);
  60.  
  61. //----------------------------------------------------------------------------------------
  62. //    Inherited API
  63. //
  64. public:
  65.     virtual FW_CContent*    NewPartContent(Environment* ev);
  66.  
  67.     virtual FW_CFrame*        NewFrame(Environment* ev, 
  68.                                  ODFrame* odFrame, 
  69.                                  FW_CPresentation* presentation,
  70.                                     FW_Boolean fromStorage);
  71.  
  72.     virtual FW_CWindow*        NewDocumentWindow(Environment* ev);
  73.  
  74.     virtual FW_Boolean        DoMenu(Environment* ev, const FW_CMenuEvent& theMenuEvent);
  75.  
  76. //----------------------------------------------------------------------------------------
  77. //    New API
  78. //
  79. public:
  80.     void                    PartChanged(Environment* ev);
  81.     void                    AdjustFramesSize(Environment* ev);
  82.  
  83. //----------------------------------------------------------------------------------------
  84. //    Data Members
  85. //
  86. private:
  87.     CBitmapContent*            fBitmapContent;
  88.     FW_CPresentation*        fBitmapPresentation;
  89. };
  90. #endif
  91.